#pragma once
#include <json/json.h>
#include <string>

void opponentToJson(Json::Value& ret_json,const std::string& opponent) {

    std::stringstream ss(opponent);
    std::string userID, uploadTime;

    getline(ss, userID, ':');
    getline(ss, uploadTime);

    ret_json["userID"] = userID;
    ret_json["uploadTime"] = uploadTime;
}